import request from '../utils/request'

export function getNcbiData(pageNumber, pageSize) {
	return request({
		url: 'getAllNcbiDataByPage/' + pageNumber + '/' + pageSize,
		method: 'get'
	})
}

export function getAllSpeciesData() {
	return request({
		url: 'getAllSpecies',
		method: 'get'
	})
}

export function getAllSpeciesDataByHost(host, pageNum, pageSize) {
	return request({
		url: 'getAllNcbiDataByPage/' + host + '/' + pageNum + '/' + pageSize,
		method: 'get'
	})
}

export function getSpeciesXmlById(id) {
	return request({
		url: 'getSpeciesXmlById/' + id,
		method: 'get'
	})
}